package ex.com.jm.food.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 警告实体层
 * 若企业触犯某些规则，对其实行警告并进行相应的封号处理(警告次数达到三次)
 * @author Administrator
 *
 */
@Entity
@Table(name="jm_warn")
public class Warnnings implements Serializable {


	private static final long serialVersionUID = 1L;
	@Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name="warn_id",nullable=false,unique=true,length=11)
	private int warnId;//警告库id
	@Column(name="warn_count",nullable=false,length=11)
	private int warnCount;//警告库某一个企业与的警告次数
	@Column(name="com_id",length=32)
	private String comId;//企业id
	@Column(name="warn_why",length=1000)
	private String warnWhy;//警告原因
	@Column(name="created",length=32)
	private String created;
	public int getWarnId() {
		return warnId;
	}
	public void setWarnId(int warnId) {
		this.warnId = warnId;
	}
	public int getWarnCount() {
		return warnCount;
	}
	public void setWarnCount(int warnCount) {
		this.warnCount = warnCount;
	}
	public String getComId() {
		return comId;
	}
	public void setComId(String comId) {
		this.comId = comId;
	}
	public String getWarnWhy() {
		return warnWhy;
	}
	public void setWarnWhy(String warnWhy) {
		this.warnWhy = warnWhy;
	}
	public String getCreated() {
		return created;
	}
	public void setCreated(String created) {
		this.created = created;
	}
	

}
